using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MiniStock.BusinessLogic.EventQueue.Data
{
    [Table("EventListeners")]
    public class EventQueueEventProcessorData
    {
        public Guid Id { get; set; }
        public string EndpointAddress { get; set; }
        public bool LastFetchSuccess { get; set; }
        public int FailCount { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime NextFetchDate { get; set; }
        public string ClientHash { get; set; }

        public virtual ICollection<EventQueueHashAffinity> ClientAffinity { get; set; }
    }
}